package com.cyj.codegen;

import cn.hutool.core.date.DateUtil;
import com.cyj.codegen.common.Constants;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Description: 启动类
 * @BelongsProject: MybatisPlusCodeGenDemo
 * @BelongsPackage: com.cyj.codegen
 * @Author: ChenYongJia
 * @CreateTime: 2021-09-03 09:41
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Slf4j
@MapperScan("com.cyj.codegen.mapper")
@SpringBootApplication(scanBasePackages = {Constants.SCAN_BASE_PACKAGES})
public class CodeGenApplication {

    /**
     * 项目启动方法
     *
     * @param args the input arguments
     * @date 2021-9-3 14:15:42
     * @author Sunny Chen
     */
    public static void main(String[] args) {
        log.info("Mybatis-plus代码生成器项目开始启动ing！======>{}", DateUtil.now());
        SpringApplication.run(CodeGenApplication.class, args);
        log.info("Mybatis-plus代码生成器项目启动成功ing.......！======>{}", DateUtil.now());
    }

}
